package com.allqj.sfx;

import com.allqj.sfx.infrastructure.utils.JsonUtil;
import com.allqj.sfx.infrastructure.utils.MD5Util;

import java.util.Arrays;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * @author sjw
 * @className main
 * @date 2022/7/23 11:30
 * @description: TODO
 */
public class main {
    public static void main(String[] args) {
        Map<String,Object> map=new HashMap<>();
        map.put("age",12);
        map.put("name","哈哈");
        System.out.println(JsonUtil.objectToJson(map));
        List<Integer> s= Arrays.asList(1,2,3,100,1000,9999,null);
        System.out.println(s.stream().anyMatch(i-> i!=null&& i.equals(1)));
        System.out.println(s.stream().anyMatch(i->i!=null&&i.equals(5)));
        System.out.println(s.stream().anyMatch(i->i!=null&&i.equals(1000)));
        System.out.println(s.stream().anyMatch(i->i!=null&&i.equals(9999)));

        System.out.println( MD5Util.string2MD5("123456"));
    }
}
